package hlhj.fhp.checkpoint.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import hlhj.fhp.checkpoint.iview.GetCashView
import hlhj.fhp.checkpoint.javaBean.MyBaseBean
import hlhj.fhp.checkpoint.module.GetCashModule

/**
 * Created by Never Fear   on 2018\11\12 0012.
Never More....
 */
class GetCashPresenter :BasePresenter<GetCashModule,GetCashView>(), GetCashModule.GetcashListener {
    override fun getCashResp(myBaseBean: MyBaseBean) {
       view?.setGetCashResult(myBaseBean)
    }
    fun getCash(account_type:Int,price:String,account:String,c: Context){
        module?.getCash(account_type, price, account, c)
    }
    override fun createModule() {
        module=GetCashModule()
        module.listener=this
    }
}